Version:=rc3
ModuleName:=hping2

Object:=hping.tgz
ObjectDir:=$(ModuleName)-$(Version)/
ObjectSource:=$(ModuleName).0.0-$(Version).tar.gz

INSTALL_DIR:=`pwd`

.PHONY:all clean dist_clean

all:$(Object)
	
$(Object):$(ObjectSource)
	rm -rf usr && mkdir -p usr/bin
	tar -xzf $(ObjectSource)
	cd $(ObjectDir) && ./configure  
	$(MAKE) -C $(ObjectDir) 
	$(MAKE) -C $(ObjectDir)  strip
	cp $(ObjectDir)/hping2 usr/bin/
	chmod 755 usr/bin/hping2
	tar -czf $(Object) usr

clean:
	rm -fr $(Object) usr

dist_clean: clean
	rm -fr $(ObjectDir) $(ObjectSource)

include ../Makefile.Res
